]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
closeDialog: Close existing dialogs on shutdown
authorFlorian Müllner <fmuellner@gnome.org>
Mon, 15 Jan 2024 13:39:59 +0000 (14:39 +0100)
committerMarge Bot <marge-bot@gnome.org>
Mon, 15 Jan 2024 22:40:47 +0000 (22:40 +0000)
Otherwise mutter will request to hide the dialog when the meta
context is destroyed, but at the JS context has already shut down,
resulting in a crash.

Close https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/7328

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3117>

js/ui/closeDialog.js

index d0169f2cf8216f43b4da8caf198f22ad7f5f7cb7..b3b8d4cf305b6942939a77288156a823c7ccd43d 100644 (file)
@@ -166,6 +166,9 @@ export const CloseDialog = GObject.registerClass({
         this._addWindowEffect();
         this._initDialog();
 
+        global.connectObject(
+            'shutdown', () => this._onWait(), this._dialog);
+
         this._dialog._dialog.scale_y = 0;
         this._dialog._dialog.set_pivot_point(0.5, 0.5);